package com.monicash.monicash.main.fragment

import android.content.Intent
import android.os.Bundle
import android.widget.ImageView
import com.monicash.monicash.BafBase.BAFBaseFragment
import com.monicash.monicash.R
import com.monicash.monicash.login.LoginActivity
import com.monicash.monicash.login.ResetPasswordActivity
import com.monicash.monicash.main.MainActivity


/**
 * 个人中心
 * author: Created by 闹闹 on 2019/11/13
 * version: 1.0.0
 */
class PersonalFragment : BAFBaseFragment<MainActivity, PersonalFragment>() {

    var  personalHeadImage: ImageView? = null

    fun newInstance(index: Int): PersonalFragment {
        val fragment = PersonalFragment()
        val bundle = Bundle()
        bundle.putInt(INDEX, index)
        fragment.arguments = bundle
        return fragment
    }

    override fun initLayout() = R.layout.fragment_personal

    override fun afterInjectView(savedInstanceState: Bundle?) {
        initEvent()
        personalHeadImage = mView?.findViewById(R.id.personal_head_image)
        personalHeadImage?.setOnClickListener {
            val intent = Intent(context, LoginActivity::class.java)
            startActivity(intent)
        }
    }

    private fun initEvent() {

    }

    override fun lazyLoad() {}

}